//package com.autumn.xa.a.discord;
//
//
//import org.apache.http.HttpHost;
//import org.apache.http.conn.ssl.NoopHostnameVerifier;
//import org.apache.http.conn.ssl.TrustAllStrategy;
//import org.apache.http.impl.client.CloseableHttpClient;
//import org.apache.http.impl.client.HttpClients;
//import org.apache.http.ssl.SSLContexts;
//import org.eclipse.jetty.client.HttpClient;
//import org.eclipse.jetty.util.ssl.SslContextFactory;
//import org.eclipse.jetty.websocket.api.Session;
//import org.eclipse.jetty.websocket.api.WebSocketAdapter;
//import org.eclipse.jetty.websocket.api.annotations.OnWebSocketClose;
//import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect;
//import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage;
//import org.eclipse.jetty.websocket.client.ClientUpgradeRequest;
//import org.eclipse.jetty.websocket.client.WebSocketClient;
//import org.java_websocket.client.WebSocketClient;
//import org.java_websocket.drafts.Draft_6455;
//import org.java_websocket.handshake.ServerHandshake;
//
//import javax.net.ssl.SSLContext;
//import javax.net.ssl.TrustManager;
//import javax.net.ssl.X509TrustManager;
//import java.net.Proxy;
//import java.net.URI;
//import java.net.URISyntaxException;
//import java.security.cert.X509Certificate;
//import java.util.concurrent.CountDownLatch;
//import java.util.concurrent.Future;
//import java.util.concurrent.TimeUnit;
//
///**
// * ClassName: Main
// * Description:
// * Author: Shen_Yue
// * Date: 2024/3/6 22:42
// * History:
// * <author>          <time>          <version>          <desc>
// * Shen_Yue    2024/3/6 22:42   @Version 1.0        描述
// */
//public class Main {
//
////    public static void main1(String[] args) throws URISyntaxException, NoSuchAlgorithmException, KeyManagementException {
////
////        // 设置代理服务器的地址和端口号
////        String proxyHost = "127.0.0.1";
////        int proxyPort = 21881; // 代理服务器端口号
////
////        // 创建代理对象
////        Proxy proxy = new Proxy(Proxy.Type.SOCKS, new java.net.InetSocketAddress(proxyHost, proxyPort));
////        TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {
////            public X509Certificate[] getAcceptedIssuers() {
////                return null;
////            }
////
////            public void checkClientTrusted(X509Certificate[] certs, String authType) {
////            }
////
////            public void checkServerTrusted(X509Certificate[] certs, String authType) {
////            }
////        }};
////        // 获取 SSLContext 实例，并初始化
////        SSLContext sslContext = SSLContext.getInstance("TLS");
////        sslContext.init(null, trustAllCerts, new java.security.SecureRandom());
////
////
////        String discordWebSocketUrl = "wss://gateway.discord.gg";
////        URI uri = new URI(discordWebSocketUrl);
////
////
////        BotSocket client = new BotSocket(uri);
////        client.setProxy(proxy);
////        client.connect();
////
////
////
////        try {
////            Thread.sleep(100000000l);
////        } catch (InterruptedException e) {
////            e.printStackTrace();
////        }
////    }
//
//
//    private static CountDownLatch latch;
//
//    public static void main(String[] args) {
//
//    }
//}
